<select name="pincode">
  <%while @pincode_details %>
  <option value=<%=@pincode_details.id-%>><%=@pincode_details.placename-%>, <%=@pincode_details.districtname-%>, <%=@pincode_details.statename-%></option>
  <%end -%>
</select>